package com.mdh.runerrands.dao;

import com.mdh.runerrands.pojo.BaseUser;
import com.mdh.runerrands.pojo.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CategoryDao {
    boolean batchDelete(int ...ids);
    boolean deleteById(int id);
    List<Category> query(int page,int pageSize,String name,String num);
    int selectCount(String name,String num);
    boolean insert(Category category);
    boolean update(Category category);
    Category selectById(int id);
    List<Category> findAll();
}
